<?php
namespace slinks\extensions\action\annotation;

use slinks\common\addendum\Annotation;

/** 
 * This annotation causes an ActionMapping to be configured.
 * @Target({"class","method","nested"}) 
 * */
class Action extends Annotation{
	
        /**
         * @var string the name of this ActionMapping. 
         *      This parameter is optional by default it will be set to ClassName_methodName.;
         */
        public $name;
    
        /**
         * The route defines which urls will match this Action. For any matching routes this action will be executed.
         * @var mixed this is either a string defining the route pattern or a Route annotation defining the route. 
         *      @see slinks\extensions\action\annotation\Route
         */
	public $route;
       
        /**
         * @var string the name of the method to invoke if the action is not defined on a class method
         *      or the method is not set via a route parameter. 
         */
        public $actionMethod;
	
        /**
         *
         * @var mixed array or single Result annotation used to configure the ResultMapping for this ActionMapping.
         */
	public $results = array();
	
        /**
         * @var string the name of the InterceptorStack to use when executing this ActionMapping. Defaults to the default InterceptorStack.
         */
	public $interceptorStack = null;
}
